﻿package app.controller {
    
	import app.model.types.LangTypes;
	import app.model.types.SectionType;
	import app.model.vo.SectionVO;
    import flash.display.DisplayObject;
    
    import org.puremvc.interfaces.*;
    import org.puremvc.patterns.command.*;
    import org.puremvc.patterns.observer.*;
    
    import app.model.*;
    import app.view.ApplicationMediator;
    import app.ApplicationFacade;

    /**
     * Create and register proxies and mediators
     */
    public class ChangeLanguageCommand extends SimpleCommand
    {
        override public function execute( note:INotification ) :void    
        {
			state.lang = note.getBody() as String;
			state.currentSection = null;
			// TODO: отключить когда будет нормальный контент в кьюбиксе
			//remote.recieveQubixData(state.lang);
			remote.recieveQubixData(LangTypes.DEFAULT);
		};
    };
};